<div class="layui-panel" style="margin: 30px;padding-top: 20px;min-height: 500px">
    <div style="text-align: center;
    padding-bottom: 7px;
    border-bottom: 2px solid #ede6e6;
    margin-bottom: 20px;
    line-height: 2.0;">
        <h2>{$data.title}</h2>
        <p>发布时间：{$data.create_at}</p>
    </div>
    {if $data.video}
    <div class="layui-form-item" style="text-align: center">

        <div class="layui-input-block">
            <video width="500px"  autoplay="" loop="" muted="">
                <source src="http://192.168.1.254:10803/upload/b4/9b0c0ddb22340f343337df0c9103c3.mp4" type="video/mp4"></video>
        </div>
    </div>
    {/if}

    <div class="layui-form-item" >

        <div class="layui-input-block" style="text-align: left;font-size: 16px;">
            {$data.content|raw}
        </div>
    </div>
    {if $data.attachment}
    <div class="layui-form-item">
        <label class="layui-form-label">附件：</label>
        <div class="layui-input-block">
            <div class="layui-upload-list">
                {if isset($data.attachment) && $data.attachment}
                {foreach $data.attachment as $k=>$v}
                <div class="file-item">
                    <a href="{$v.url}" target="_blank">{$v.name}</a>
                </div>
                {/foreach}
                {/if}

            </div>
        </div>
    </div>
    {/if}

</div>